<include file="public:header"/>
<load href="__TMPL__public/css/uc_v1.css" />   
<div class="middle">
    <div class="uc clearfix account">
    	<div class="login">
	        <if condition="$seo.sina_app_key && $seo.qq_app_key">
	            <p class="login_title">登录</p>
	            <p class="mt20 f14"><strong>1.使用这些帐号登录：</strong></p>
	            <div class="login_list clearfix">
	                <neq name="seo.sina_app_key" value=""><a href="{:u('uc/sina_login')}" class="sina" target="_blank"></a></neq>
	                <neq name="seo.qq_app_key" value=""><a href="{:u('uc/qq_login')}" class="qq" target="_blank"></a></neq>
	            </div>
	        </if>
            <p class="mt20 f14"><strong>使用已注册的帐号登录：</strong></p>
			<present name="err">
            <div class="err" style="width:150px;">
		        <div class="icon_{$err.err}">{$err.msg}</div>                
            </div>
            </present>             
            <form id="myform" name="myform" action="" method="post" onsubmit="return check();">
                <table class="mt10">
                    <tr>
                        <th>昵　称:</th>
                        <td>
                        	<input type="text" value="" id="name" name="name" class="input_text" size="20"/>
                        	<div class="hint error"></div>
                        </td>                    
                    </tr>
                    <tr>
                        <th>密　码:</th>
                        <td><input type="password" value="" id="passwd" name="passwd" class="input_text" size="20"/>
	                        <div class="hint error"></div>
                        </td>                    
                    </tr>  
					 <tr>
                            <th>验证码:</th>
                            <td>
                            	<input type="text" name="verify" id="verify" class="input_text left" maxlength=4 style="width:100px;"/>
                            	<img src="{:u('public/verify')}" class="verify_img" class="left"                              
								onclick="javascript:this.src='./?a=verify&m=public&tm='+Math.random()"
                                style="margin:5px 0px 0px 10px;"/>
								
                            </td>
                        </tr>
                    <tr>
                        <th></th>
                        <td><input type="submit" class="submit" value="确定" name="dosubmit"/>　　　</td>                    
                    </tr> 
					<tr>
                        <th></th>
                        <td>还没有账号：<a style="color: #123DB4;" href="{:u('uc/register')}">立即注册</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;忘记密码：<a style="color: #123DB4;" href="{:u('uc/find_password')}">找回密码</a></td>                    
                    </tr>                 
                </table>            
            </form>
        </div>		
    </div>
</div>
<script type="text/javascript">
function check(){ 
	var name=$.trim($('#name').val());
	var passwd=$.trim($('#passwd').val());
	if(name.length<1){ 			
		$('#name').next('.hint').html('请填写昵称');
		return false;
	}	
	if(passwd.length<1){ 			
		$('#passwd').next('.hint').html('请填写密码');
		return false;
	}	
	return true;
}
</script>
<include file="public:footer"/> 